package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备信息对象 sys_device
 * 
 * @author ruoyi
 * @date 2021-04-26
 */
public class SysDevice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    @Excel(name = "编号")
    private String deviceId;

    /** 时间戳 */
    @Excel(name = "时间戳")
    private Long deviceTimestamp;

    /** 已运行时间 */
    @Excel(name = "已运行时间")
    private Long deviceRunTime;
    private String version;
    public String getVersion(){
        return this.version;
    }
    public void setVersion(String version){
        this.version=version;
    }
    /** 经度 */
    private Double deviceLat;

    /** 纬度 */
    private Double deviceLng;

    /** 海拔 */
    private Double deviceElevation;

    /** cpu占用率 */
    @Excel(name = "cpu占用率")
    private Double deviceCupOcRate;

    /** 内存占用率 */
    @Excel(name = "内存占用率")
    private Double deviceMemOcRate;

    /** 过去24小时的发送失败率 */
    private Double deviceErrorRate;

    /** 所属组 */
    @Excel(name = "所属组")
    private String deviceGroup;

    /** 所属地区 */
    @Excel(name = "所属地区")
    private String deviceArea;

    /** 功能配置 */
    @Excel(name = "功能配置")
    private String deviceFunctionConfguration;

    /** 版本号 */
    @Excel(name = "版本号")
    private String deviceVersion;

    /** 状态（0正常 1停用) */
    @Excel(name = "状态", readConverterExp = "0=在线, 1=离线")
    private String deviceStatus;

    public void setDeviceId(String deviceId) 
    {
        this.deviceId = deviceId;
    }

    public String getDeviceId() 
    {
        return deviceId;
    }
    public void setDeviceTimestamp(Long deviceTimestamp) 
    {
        this.deviceTimestamp = deviceTimestamp;
    }

    public Long getDeviceTimestamp() 
    {
        return deviceTimestamp;
    }
    public void setDeviceRunTime(Long deviceRunTime) 
    {
        this.deviceRunTime = deviceRunTime;
    }

    public Long getDeviceRunTime() 
    {
        return deviceRunTime;
    }
    public void setDeviceLat(Double deviceLat) 
    {
        this.deviceLat = deviceLat;
    }

    public Double getDeviceLat() 
    {
        return deviceLat;
    }
    public void setDeviceLng(Double deviceLng) 
    {
        this.deviceLng = deviceLng;
    }

    public Double getDeviceLng() 
    {
        return deviceLng;
    }
    public void setDeviceElevation(Double deviceElevation) 
    {
        this.deviceElevation = deviceElevation;
    }

    public Double getDeviceElevation() 
    {
        return deviceElevation;
    }
    public void setDeviceCupOcRate(Double deviceCupOcRate) 
    {
        this.deviceCupOcRate = deviceCupOcRate;
    }

    public Double getDeviceCupOcRate() 
    {
        return deviceCupOcRate;
    }
    public void setDeviceMemOcRate(Double deviceMemOcRate) 
    {
        this.deviceMemOcRate = deviceMemOcRate;
    }

    public Double getDeviceMemOcRate() 
    {
        return deviceMemOcRate;
    }
    public void setDeviceErrorRate(Double deviceErrorRate) 
    {
        this.deviceErrorRate = deviceErrorRate;
    }

    public Double getDeviceErrorRate() 
    {
        return deviceErrorRate;
    }
    public void setDeviceGroup(String deviceGroup) 
    {
        this.deviceGroup = deviceGroup;
    }

    public String getDeviceGroup() 
    {
        return deviceGroup;
    }
    public void setDeviceArea(String deviceArea) 
    {
        this.deviceArea = deviceArea;
    }

    public String getDeviceArea() 
    {
        return deviceArea;
    }
    public void setDeviceFunctionConfguration(String deviceFunctionConfguration) 
    {
        this.deviceFunctionConfguration = deviceFunctionConfguration;
    }

    public String getDeviceFunctionConfguration() 
    {
        return deviceFunctionConfguration;
    }
    public void setDeviceVersion(String deviceVersion) 
    {
        this.deviceVersion = deviceVersion;
    }

    public String getDeviceVersion() 
    {
        return deviceVersion;
    }
    public void setDeviceStatus(String deviceStatus) 
    {
        this.deviceStatus = deviceStatus;
    }

    public String getDeviceStatus() 
    {
        return deviceStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("deviceId", getDeviceId())
            .append("deviceTimestamp", getDeviceTimestamp())
            .append("deviceRunTime", getDeviceRunTime())
            .append("deviceLat", getDeviceLat())
            .append("deviceLng", getDeviceLng())
            .append("deviceElevation", getDeviceElevation())
            .append("deviceCupOcRate", getDeviceCupOcRate())
            .append("deviceMemOcRate", getDeviceMemOcRate())
            .append("deviceErrorRate", getDeviceErrorRate())
            .append("deviceGroup", getDeviceGroup())
            .append("deviceArea", getDeviceArea())
            .append("deviceFunctionConfguration", getDeviceFunctionConfguration())
            .append("deviceVersion", getDeviceVersion())
            .append("deviceStatus", getDeviceStatus())
            .toString();
    }
}
